#include <iostream>
#include <sstream>
#include <string>
#include <windows.h>
#include "MyServer.h"

using namespace std;


int main()
{
    MyServer *server = new MyServer();
    server->ListenToPort(9999);
    while(server->IsRunning())
    {
        server->Log("Run!");
        Sleep(100);
    }
    server->Stop();
    server->Log("Exit..\n");

    delete server;
    return 0;
}
